﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SLAssetSystem
{
    public enum AssetType
    {
        GameObject=1,
        ScriptableObject = 2,
        AssetBundle = 3,
        CSV = 4,
        Json=5
    }

    public enum ModeType
    {
        Debug=1,
        Release=2,
    }

    public partial class AssetPaths
    {
        public const string ResourcesPath = "";
        public const string PrefabsPath = "Prefabs/";
        public const string WindowPrefabPath = "Prefabs/Windows/";
        public const string EffectPrefabPath = "Prefabs/Effects/";
        public const string CharacterPrefabPath = "Character/Prefabs/";
        public const string BehaviourTreeConfigPath = "Configs/BehaivourTrees/";

        public const string ConfigsPath = "Configs/";
        public const string SkillConfigsPath = "Configs/Skill/";
        public const string WindowsConfigPath = "Configs/WindowInfo";

        public static string GetResourcesPath(string path) {
            if (path.Contains("Resources/"))
            {
                path = path.Substring(path.LastIndexOf("Resources/") + 10);
            }
            return path;
        }

        public static string GetFileWithoutExtension(string name)
        {
            if (name.Contains('.'))
            {
                int index = name.IndexOf('.');
                name = name.Substring(0, index);
            }
            return name;
        }

    }
}
